For the setSprite case, we want to remove both 'random' and 'hidden' from the list when creating possibleValues. I think this version only removes 'random'. When it passed opts.random of 1, it effectively skipped index 0 and index 1 when building allValues. Can you check and test with your change here? Perhaps another constant for HIDDEN_VALUE is appropriate?