move internal link to first occurrence