Fix document text