fix the timer sheduling bug