Fix replication (must provide a callback)