Fixed index.php errors