Fix bug with interrupt handler.