fixing type in metrics