Fixed broken map editor.