fixed replication (backport pr #175 to master branch)
fixing stupid typo
Merge pull request #274 from deniszh/master_replication_fix

fixed replication (backport pr #175 to master branch)