Method for repairing references without reference types.