fixed the timer