Fixed namespace errors in index.php