Fix multiple bugs in CAM related devices which go away unexpectedly. This