fixes sed command gone awry to repair link