Fix bugs in reading keys from cluster.
Fix bugs in replicating node assignments.