fixed timer reset after interrupt