fixed popover template issue