bug fix: print tree with max_term > 1