Fixed autoswitching tab when commit is selected.