Fixed bug in performance metric.