hyperlink bugfixing

if a hyperlink already exists on top of the reference text, skip the
creation of hyperlinks for this reference