improve Safe Delete for refinements