Trying to make up a records page for the Pathfinder2e Extinction Curse circus. I've created a bunch of tokens on the GM layer, each named for certain fields on the sheet. The goal is to be able to create text fields that I can identify and move around when needed. I've hit a strange roadblock - I keep getting an error "TypeError: Cannot set property 'undefined' of undefined" at a random point while iterating through the token graphics. It will successfully go through a dozen or so graphics before crashing and throwing that error, and the strangest thing is that moving the tokens and trying again will cause it to crash at a different point. I'm not certain exactly what to do here. My (currently broken) code is <a href="https://github.com/Mikkles/roll20api/blob/master/CircusHelper.js" rel="nofollow">https://github.com/Mikkles/roll20api/blob/master/CircusHelper.js</a> If anyone has any input, I would definitely appreciate it.