Fixed sigsegv when pressing stop before running.