fix out-by-1 error on BED custom files