fixes counters