fixed notices on index.php