delete events bug fix