Molded spaghetti sauce :(

Dalalalsh
Just used 4 tbsp of a molded spaghetti sauce added 2 big tomatoes and put it on fire for a while to simmer. At last, I found out that the lid of the spaghetti sauce was molded! And I just ate that.
Do you think baby is fine? And fire might killed any bacteria and mold there? I used a bit after all. 
Please let me know. Feel afraid :(