fix postorder traversal