fixed clusterThread loop