fix counters in different configurations