Fix postorder traversal code.