tree: fix table bug