Fix a logic bug in TimerController