bug fix: closed folds were randomly opened.