Runtime error with n-1 folds fixed