Save and Restore links properly.