fixed bug to prevent rotors from shutting down unexpectedly. To be tested.