Fixed printTree