fixed bugs with various links not getting the link_id