fix scrollToLink if links are hidden