fix warning in index.php