Fixed the timer_sleep