Main.php fix