Put the index in the right place.