Fixed missing $json and Flight.php