fixed deleting of events