Fix intersectBed and overlapBed