Fixed typo in ensure_link.