fix bug in xen_host_get_metrics