fixed active_thread could avoid going to sleep