End the link in the right place