fixed critical bug in InterruptSensor