Fix disjoint contours