Corrects cross-validation warnings.