fix docx generation