Handle NaN in metrics view