fix exception in TimerCommand