DDF-231 fixed edge case for fly to algorithm