Fix writing link