fix switchbutton