diff --git a/pdf2htmlEX/src/util/ffw.c b/pdf2htmlEX/src/util/ffw.c
index 05b6385..901b508 100644
--- a/pdf2htmlEX/src/util/ffw.c
+++ b/pdf2htmlEX/src/util/ffw.c
@@ -70,6 +70,7 @@ static void dumb_post_error(const char * title, const char * error, ...) { }
void ffw_init(int debug)
{
ffwSetAction("initialize");
+ FindProgDir(NULL);
InitSimpleStuff();
if ( default_encoding==NULL )
default_encoding=FindOrMakeEncoding("ISO8859-1");