update AggMetricAnalyzer, fix bug