bug with delete event