Fix a bug in range collections.

Incorrectly coded for when the range index is not the rightmost column of the
collection.