Fix typo in metrics.py