First execution bug fixed
MotionSensor unregistered when it is not active