fixed off-by-one error in previous commit