Fixed clear both issue for switches.