Fixed overly restrictive condition to identify disjoint plans.