fixed closeAllTabs bug