fix missing datadir