improved error and hyperlink positions