fix #32356: Crash when pasting 'all' to new file