Fixed all errors in index.php