Fix error sign error in recomputation of metrics.