Fix bug in timers