fix the metric bug