fix popover glitch