Fixed issue with running the fitting routines