fixing the timer reset issue