fix entity delete event