Fixed a bug where timers were not working correctly