fix main.php