Fix a range assert (9284)

off-by-one...