fixes to RandomForest