Fixed some issues with the editor.