FIX: Rounding errors in the reduction of average values.