fix bugs in statsd_metric