fix links script