Fixed stupid off-by-one error.