Hello, I'm struggling with a flow. I'm trying to link my task planner to a tracking list. In each task, the description matches a column called "Unique ID" in a list. Each item in the list can have multiple tasks. I'd like to track how many tasks for each item in the list have been closed and this only applies to tasks within a particular bucket. My below flow is a beast, so there are multiple screenshots. It's failing in the section of the flow where I am trying to set a "Action complete count" variable equal to the numeric value of already closed tasks in the list, increment the value, then update the list with the new value. It appears to be attempting to update the "Action complete count" variable for each item in the list regardless if the Unique IDs match, and then is skipping the update list step. Screen shots are below for each of the flow steps.
Flow step 1: Trigger on task closure, set variable for bucket id to verify correct bucket, and initialize variable to action count. - this all appears to be working.

Flow step 2 if bucket ID matches: Get task details and get list details and compare the two- this appears to be working.

Flow step 3 if Unique IDs match: Set "Action complete count" variable to value in list column and increment. - this is where it gets odd... The compose immediately after the condition returns the correct value, but the set variable and update of the list are in a loop. It's updating every entry in the list, not just the entry where the Unique IDs match.

Anyone have any idea where this is breaking down? Thanks in advance!