fix link attributes