Fixed indefinite loop caused by previous commit in index.php