Fix notices on index.php