fix bugs of link