Corrected bug when creating document from ODT template