fixed replication when resetting counter