diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html
index 63d7aae4..b6c6d318 100644
--- a/docs/pyerrors/fits.html
+++ b/docs/pyerrors/fits.html
@@ -404,7 +404,7 @@
293 if len(key_ls) > 1:
294 for key in key_ls:
295 if np.asarray(yd[key]).shape != funcd[key](np.arange(n_parms), xd[key]).shape:
-296 raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {xd[key].shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
+296 raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {np.asarray(yd[key]).shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
297
298 if not silent:
299 print('Fit with', n_parms, 'parameter' + 's' * (n_parms > 1))
@@ -1378,7 +1378,7 @@ Hotelling t-squared p-value for correlated fits.
294 if len(key_ls) > 1:
295 for key in key_ls:
296 if np.asarray(yd[key]).shape != funcd[key](np.arange(n_parms), xd[key]).shape:
-297 raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {xd[key].shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
+297 raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {np.asarray(yd[key]).shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
298
299 if not silent:
300 print('Fit with', n_parms, 'parameter' + 's' * (n_parms > 1))