Fixed camera switch crash.