add delete event bug fix