Fix error in downgrade script when making links.