Removed duplicate calculation of model fit