Fixing an indexing issue.