fixing markup of links