fixed isIntersect() method