fix up bad ref links