fix a img popover bug in firefox