Fix typos and bad copying in fixLinks