replication bugfix
Merge branch 'develop'