Fix bug where IterationStatement only executes once.