fix bug in index.php