Restore marks and links