Fix indexing issue.