Fixed SIGCONT bug where reported wrong program state;