fixing links in references