fixed some issues with replication