fix the rectangles remove on feature delete
minor fixes