Bugfixing (intersectBed).