fixing MaxLikelihoodFit