Fix updating title and icon in tab.