fixed a bug in BED parser