fix bugs about the links