fixed sync_links bug that prevented second link from being updated