fixed main.php type error