Make the timer work correct