delete events bugfix