Fixed bug in index.php