fix the index.php bug