Fixed `linksIntersect` logic