smlinks fix