editor: crash fix