fixed a timer glitch