A quick fix for now for TypeError when the fitting function doesn't work right.