Bug fixes in OcrRead