Fixed some more issues in index.php