fixed bug causing OS to crash when only the default thread is running