fixed flights bug