Fixed bug on index.php