Fix crash on delete events.
Fix