Fixed the iteration