Fix crash that occured when opening the editor a second time