minor bug fix in metrics