Fixed event handling after object delete.