Typo fix

Should fix a crash I encountered. You might even consider using the for (T element : iterable) syntax, which I find to be more convenient.