fix dupe attribute and link names