fix anchor scrolling and popover