error in index fixed