fix bug getExistingLink(link)