Possible fix for the problems with pathIntersection()