diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx
index c81c5d21ad6bc843712795eec0c8d37655db91a0..1de665e33422b5372322ec02018912b18fd8da29 100644
--- a/src/containers/blocks.jsx
+++ b/src/containers/blocks.jsx
@@ -366,9 +366,10 @@ class Blocks extends React.Component {
         this.ScratchBlocks.refreshStatusButtons(this.workspace);
     }
     handlePromptCallback (input, optionSelection) {
-        this.state.prompt.callback(input, optionSelection,
-            (optionSelection === 'local') ? [] :
-                this.props.vm.runtime.getAllVarNamesOfType(this.state.prompt.varType));
+        this.state.prompt.callback(
+            input,
+            this.props.vm.runtime.getAllVarNamesOfType(this.state.prompt.varType),
+            optionSelection);
         this.handlePromptClose();
     }
     handlePromptClose () {