fix popover issue with html hack (ported back through amigo code)