Fix how network errors are calculated.