fixing issue #224, IF during interrupts