Fixing index.php bug