update links correctly