Another off-by-one error