Fix indexing.