yet another error in index fixed