fix RFs with closed trees
fix RFs with closed trees

jamesjia94/BIDMach,BIDData/BIDMach,BIDData/BIDMach,jamesjia94/BIDMach,jamesjia94/BIDMach,BIDData/BIDMach,BIDData/BIDMach,BIDData/BIDMach,jamesjia94/BIDMach,jamesjia94/BIDMach,jamesjia94/BIDMach,BIDData/BIDMach