fix index bug in BED format