Fixed invalid array iteration variable that was left behind