temp fix for delete event bug