Fixed bug in Timer Interrupt