Fix array troubles in index.php