fit sign inversion bug for betas