Fix editor and folds