Fix missing var declaration in for loop introduced by #1179