Fixed a big where links wouldn't be assigned unique ids