saveInv and fixSigma