Fix index confusion.