fixed camera switch bug