Hello,
It looks like your flow currently has two loops, but only one is visible in the screenshot. For what you're trying to achieve, you should only need a single loop. The second loop inside the branch can be removed.
You can find an example of a similar flow attached here.
Let us know how it goes.