Bugfix for case where N is not divisible by num CV folds