Fix infinite loop in 'stop' action.