fix intersect test