fix a bug in mDiffFit