I have the following sheetworker:   on("change:repeating_college remove:repeating_college", function() {     getSectionIDs("repeating_college", function(idArray) {         if(idArray.length == 0) {             console.log("ID Array is blank");             console.log(idArray);             setAttrs({"ismage":0});         }         else {             console.log(idArray);             var concat = "";             var counter = 0;             for (var i=0; i < idArray.length; i++) {                 var idname = idArray[i];                 console.log(idname);                 console.log("attrname: " + "repeating_college_" + idname + "_college");                 getAttrs(["repeating_college_" + idname + "_college"], function(objCollege) {                     console.log(objCollege);                     var collegeName = objCollege[Object.keys(objCollege)[0]];                     console.log(collegeName);                     if(collegeName == undefined) {                         collegeName = "";                         console.log(collegeName);                     }                     concat += collegeName;                     console.log("concat: " + concat);                     counter ++;                     console.log("counter: " + counter);                 });             }             var check = function(a, b) {                 if (a!=b) {                     setTimeout(check, 50);                     console.log("WAITING!");                     return;                 }                 console.log("concat is now: " + concat);                     if (concat == "") {                     console.log("All entries are empty");                     setAttrs({"ismage":0});                 }                 else {                     console.log("Colleges are non-empty");                     console.log("non empty concat:" + concat);                     setAttrs({"ismage":1});                 }             };             check(counter, idArray.length);         }     }); });  Everything works fine except my attempt to set attributes with setAttrs. I get an error in the console log:   sheetsandboxworker.js?20150218:118  Character Sheet Error: Trying to do getAttrs when no character is active in sandbox.   I know it says getAttrs - this is a bug with Roll20 (I've logged it). When I look at line 118 it is in the function setAttrs().   Can anyone explain why?  Thanks!