Fixed a bug in generic.cv

Cannot delete the fit if it is not a madlib fit