Fix bug with multiple links in succession.