Fix the remove attributes values when object is deleted.