Fixed parsing of folds.