Fixed the bug that can't switch the tab.