Fixing an indexing bug.