Fixed Bug in Timer Interrupt