fix timer1 bug