fix Popover dismissing