MetricManager histogram bugs fixed