fix bug in ocrsdk