Fix to set language for ocr and hocr.