     else if splitUrl.mimeType == "text/css"
       assetNamesToData[name].remove()
     else if splitUrl.mimeType.indexOf("image/") == 0
-      URL.revokeObjectUrl(assetNamesToData[name])
+      URL.revokeObjectURL(assetNamesToObjectUrls[name])
 
   assetNamesToData = {}
+  assetNamesToObjectUrls = {}
 
   # Create new assets
   for name, dataUrl of newAssetMap

      css = atob(splitUrl.data)
      assetNamesToData[name] = $('<style type="text/css"></style>').html(css).appendTo("head")
    else if splitUrl.mimeType.indexOf("image/") == 0
      assetNamesToData[name] = Util.strToObjectURL(splitUrl.data, splitUrl.mimeType)
    else
      assetNamesToData[name] = atob(splitUrl.data)


currentServices = null
currentEvaluator = null

assetNamesToData = {} 
assetNamesToObjectUrls = {}

compiledActions = {}
compiledTools = {}

