fix bug about removing title bar for toolbar popover.