fixed event deletion