Fix #382 inconsistent getIntersection behavior