Fix document format