editor: fix some warnings with document transition