fixed replication (backport pr #175 to 0.9.x)
fixing stupid typo
Merge pull request #273 from deniszh/0.9.x_replication_fix

fixed replication (backport pr #175 to 0.9.x)