Check persistent_undo feature before unsetting