fix the timer repetition