Switching USB cameras hold exposure

Hey,
Our team uses two USB cameras on the robot and we want to be able to switch between then during the match.
The issue is that when we set both camera’s status to TRUE only one will show on the dashboard while the other shows an error.
We figured out that it works if we set one status to ture and the other to false - that way they both work but it seems that the camera that is not in use is turning off and then turns on when we switch to it.
THE MAIN ISSUE: After a few switches, sometimes only after only one, the camera’s exposure resets to some default value which is very high and refuses to change to a lower value. This causes the camera to become unusable during matches and we couldn’t find a fix.
What can we do to fix that?
This is urgent because we compete today.
Thank you.

Could you show us a picture of the code to see what you mean, sometimes explaining it in words does not help us figure out what is wrong.

My team use 2 USB cameras with an exposure of -11, take a look at my programs (robot Code and Dashboard) in my signature to see how I did it. (Mainly in “Vision Processing”, “Periodic Tasks” and the dashboard)