Fixed crash without editor.