Make the do not generate option for OCR work.