Fix UnitofWork counters.