fix crash on deleting nonexistent item
fix errors from events in just-deleted clones