bugfixes in drone state machine