Several fixes to the Flights plugin.