fixed interrupt handling for hwtimer