Fixes counters may be negative