Fixed bug on replicating to all nodes