Fixed unknown variable in slide

In the looping example there is a variable that has never been declared.