fixed data dir not being initialized correctly