fix popover bug