fixed safari/firefox popover issue