fixed bug in replication
0.1.3