Fix datadir problem