fixed bugs in links;