Fixed incorrect folds argument check