fix get switch bug