bug in metricValue, fixed.