Fix bug in link helper.