quick fix for metric.py error