You are right, in the inner loop, break it what it should be.