fix scrolling when links in rules clicked