Fix a link bug in some critial cases.