error when no models could be fitted was not correct