Fix an indexing issue.