fix tab select in colorSwitch()