fix ocr language check