fixed bug with cancelling timers