fix counters