fixed bug in cluster iterations