Fixed y == None problem in Fitting.py