Logic for mainCam reactivated.
Prevent overflow for the mainCam