bug fix at empty folds.