Fixed bug in links script where the link locations were wrong