fix bug on index.php