Fix upper bound for subscript in ordered_cols.