fixing link attributes