Added 1D Fit, fixed fitting error