fixes serios error on measuring the length of a patent's'sorted_text' field