improved max errors computations: previously, NaN values induces the error update to be skipped, thus leading to artificially good results