Changing links to references