fix refreshCounters()