small bug fix on intersect