@@ -211,7 +211,7 @@ writeDocx opts doc@(Pandoc meta _) = do
211211 let doc' = walk fixDisplayMath $ doc
212212 username <- lookup "USERNAME" <$> getEnvironment
213213 utctime <- getCurrentTime
214− distArchive <- getDefaultReferenceDocx Nothing
214+ distArchive <- getDefaultReferenceDocx datadir
215215 refArchive <- case writerReferenceDocx opts of
216216 Just f -> liftM (toArchive . toLazy) $ B.readFile f
217217 Nothing -> getDefaultReferenceDocx datadir