Fix error in Metrics.