Correct subtle off-by-one-error.