Correcting ref links