event delete bugfix