fix another off-by-one error

quite certainly, this won't be the last...