bugs with timer_interrupt()