Fixed tesseract code for 1.5.