fix a bug in BED intersection routine