fixed fit function when normal_coef = 0