https://github.com/HerrHorizontal/mc-run/blob/b3cb487b50c878e9c3bdacb56dce3148c362354e/scripts/fit.py#L30-L32 This also causes the chi2/ndf calculation to be wrong in this case.