Fix a bug of cluster replication