datadir fix