fix bug in main.php config file