Bring the set found and add 1 actions to the top block that has the loop along with the 'whichitem=' condition and also add a system action 'stop loop', and delete the second block below.
On the third block remove type=item.itemtype condition.
There could still be a bug but let's see. I need Construct purchase to assist properly but I'm buying it soon.