fix TreeWalkerChain.

Create walker object in foreach.