diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html
index 1fbc6cae..478d3026 100644
--- a/docs/pyerrors/fits.html
+++ b/docs/pyerrors/fits.html
@@ -466,11 +466,11 @@
358 if not fit_result.success:
359 raise Exception('The minimization procedure did not converge.')
360
-361 if x_all.shape[-1] - n_parms > 0:
-362 output.chisquare = chisquare
-363 output.dof = x_all.shape[-1] - n_parms + len(loc_priors)
-364 output.chisquare_by_dof = output.chisquare / output.dof
-365 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof)
+361 output.chisquare = chisquare
+362 output.dof = x_all.shape[-1] - n_parms + len(loc_priors)
+363 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof)
+364 if output.dof > 0:
+365 output.chisquare_by_dof = output.chisquare / output.dof
366 else:
367 output.chisquare_by_dof = float('nan')
368
@@ -1371,11 +1371,11 @@ Hotelling t-squared p-value for correlated fits.
359 if not fit_result.success:
360 raise Exception('The minimization procedure did not converge.')
361
-362 if x_all.shape[-1] - n_parms > 0:
-363 output.chisquare = chisquare
-364 output.dof = x_all.shape[-1] - n_parms + len(loc_priors)
-365 output.chisquare_by_dof = output.chisquare / output.dof
-366 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof)
+362 output.chisquare = chisquare
+363 output.dof = x_all.shape[-1] - n_parms + len(loc_priors)
+364 output.p_value = 1 - scipy.stats.chi2.cdf(output.chisquare, output.dof)
+365 if output.dof > 0:
+366 output.chisquare_by_dof = output.chisquare / output.dof
367 else:
368 output.chisquare_by_dof = float('nan')
369