Intersection check bugfix