fixes to random forests