Fixed delete event reference error