Fix error on index