fix ISR bug