fix for non-disjoint clustering