Various replication script fixes