fix CAM and oldCAM