fixed bug in bed format