fixed metrics counters bug