Fixed the loop
Fixed the loop