diff --git a/demos/blockfactory/block_option.js b/demos/blockfactory/block_option.js
index 8bc1a2fd4..e7cdaa6af 100644
--- a/demos/blockfactory/block_option.js
+++ b/demos/blockfactory/block_option.js
@@ -126,9 +126,9 @@ BlockOption.prototype.showPreviewBlock = function() {
var blockOptPreviewID = this.dom.id + '_workspace';
// Inject preview block.
- var workspace = Blockly.inject(blockOptPreviewID, {readOnly:true});
- Blockly.Xml.domToWorkspace(this.previewBlockXml, workspace);
- this.previewWorkspace = workspace;
+ var demoWorkspace = Blockly.inject(blockOptPreviewID, {readOnly:true});
+ Blockly.Xml.domToWorkspace(this.previewBlockXml, demoWorkspace);
+ this.previewWorkspace = demoWorkspace;
// Center the preview block in the workspace.
this.centerBlock();
diff --git a/demos/custom-dialogs/index.html b/demos/custom-dialogs/index.html
index 42cba5477..ee1bc840e 100644
--- a/demos/custom-dialogs/index.html
+++ b/demos/custom-dialogs/index.html
@@ -47,7 +47,7 @@
diff --git a/demos/fixed/index.html b/demos/fixed/index.html
index 680fa7691..346732858 100644
--- a/demos/fixed/index.html
+++ b/demos/fixed/index.html
@@ -38,7 +38,7 @@
diff --git a/demos/generator/index.html b/demos/generator/index.html
index 7bc483855..c76e1f3e6 100644
--- a/demos/generator/index.html
+++ b/demos/generator/index.html
@@ -113,16 +113,16 @@
diff --git a/demos/interpreter/async-execution.html b/demos/interpreter/async-execution.html
index e68f0dc0d..11dfc5088 100644
--- a/demos/interpreter/async-execution.html
+++ b/demos/interpreter/async-execution.html
@@ -132,11 +132,11 @@
diff --git a/demos/resizable/overlay.html b/demos/resizable/overlay.html
index 2d9f41f9b..ee2600e04 100644
--- a/demos/resizable/overlay.html
+++ b/demos/resizable/overlay.html
@@ -66,7 +66,7 @@