Fix lazyness for variable declared in loop.