popover bug fix