fix bugs in link