bug fix in myfit1.cpp