Fix for devices affected by the OpenCV 1244 bug.