fixed fitting errors arising from msgl