Fix bug preventing the fit function from working.