I assume questions
is a Dictionary
? What keys does it contain? What's the value of chosen
at the time of the error?
Normally, I'd expect some sort of Invalid get index 'x' error on a Dictionary
rather than an out of bound error...
--- Edit ---
Ah, right, the result of keys()
IS an array - hence the array oriented error...