fix BUG in doFit==7