Fix replicator daemon bug