fix for switch camera