fix uninitialized var in metricValue in error condition.
fix ddictAvgDepth should be float.