Some fixes for docx document formating