fix small bug for InorderNonRecursive2