Worked on link replacement, errors cropping up with double-replacement