Fix wrong creation of links caused by previous commit
Fix highlight of anchor links when maxhi is on