If A is OK, then swap the condition on C like I wrote you in the image above.
Then move B after D (inside the repeat) and make sure that inside the add in listRegions you have set all the listRegions variables from the repeatQuery AND set the extra listRegions.activated variable = activated (from the D setvalue)
if you don't understand please share a screenshot of the B step