Replicator: Fixed a bg-replication crash