I copied your blocks into AI2 to edit them there, to fix 2 problems:
- you don't need to clear variables before setting them.
- you have to load the Elements list of a List Picker before Opening the List Picker.
The red errors are because I did not bother setting up global variables.
P.S. These blocks can be dragged directly into your Blocks Editor workspace.
See A way to group projects by theme - #10 by ABG
for a demo.
P.S. I have not seen the other procedures you call nor have I seen the provenance of the global variables you use, and I don't understand your variable names, so I can't vouch that this will solve all your problems.
