bug fix in splitAndMergeClusters