replication panic bugfix