fix bug with generation return flights