Bugfix in flying code