It may be helpful to post a new topic that describes exactly what you’re running into with a minimal example folks can use to understand what’s going on.
Edit: ah, I see you have here: Tips to cope with scoping rules of top level `for` loops etc - #28