fixed bug in numClusters