bug-fix variable name on index.php