Counterbalancing Error: Undefined When Setting Loop to 0

URL of experiment: Pavlovia

Description of the problem: In order to counterbalance which participants see which task version, I have a sheet that sets each loop to either 1 rep or 0 reps, depending on a random number. All of this works in Psychopy, and it works on Pavlovia when I set everything to 1 rep, but when I set it to counterbalance and not show certain blocks (0 reps) it gives the following error on Pavlovia:

I did have this working in a previous version, and do not know what changed. Any thoughts are appreciated! Thank you!