fixed a couple crashes in editing entities