Trying to fix delete event