Fixing text extraction