Fix popover direction