fix bug in datafile forest support