fix bug in cluster