fix race condition between check_command and main command execution cycle
small fix to spec suite