Fixed the loop
Loop fix