Loop Over Items losing lead data on second iteration + re-processing sent leads

My automation takes a lead list, scrapes their LinkedIn profile and sends personalized emails from 3 different email accounts. I have a quota per email account so the email it sends from is based on the quota. After the automation chooses the email account to send from, it goes through a switch node and then enters a loop node that contains the gmail node, 3 google sheets (One for updating the sent status, one for updating the quota and the other for adding the email that i sent into the sheet.

After it goes through those 3 sheets, the loop node goes back and attaches to my code node that cleans up my email and runs through the process again (Looks at the updated quota and decides which email account to send from). The first run works fine, but during the 2nd run, I lose data of the other leads im trying to email, and the lead I just emailed is going through the automation again ( I need this lead removed (filtered by sent status)).

My question is, how do I get the leads data from my first run into my 2nd run after the loop?

Hi @mea1216,

I’m pretty sure you don’t need to use any loop nodes at all, n8n handles looping automatically by design.
If possible, try removing all of them and let me know what happens.