Fix AddLink bug