Fixed counters deadlock