Fixed coding bugs for planning node depth compare.