fixes rounding for metrics calc