fix delete event bug