fixed the counters