ref links error fix