add a script to fix metadata links.