editor: bugfixes