fixing popover issue