Fixed some errors in index.php