fix links bugs