fix control switch bug