fix random link bug