added patch for tesseract