Fix buglet when using BED input