Fixed metrics issue with gauges.