fixing linked code elements