bug fix for popover