Fixed bug in DOCX processing