fixed event delete bug