fixing the link code

links don't kick in correctly