off-by-one error (did not notice until I tried this with some vcf references)