Bugfix to editor