Fixed couple of errors in trees