Fixing bug on index.php