Fix main.php