fix links bug