         else
             @deleteImg = 'img/cx.png'
 
+        @interpreter = new CodeInterpreter @commands
         @editor = new PlayerCodeEditor 'ace-editor', \
             @commands, @codeConfig.initial, @codeConfig.show, @codeConfig.prefix, \
-            @codeConfig.postfix, @editorConfig.freeformEditting
-        @interpreter = new CodeInterpreter @commands
+            @codeConfig.postfix, @editorConfig.freeformEditting, @interpreter
 
         # Create editor buttons
         @acelne = document.createElement("div")

            button = buttonField.find "##{command}"
            line = @editor.createBlankFunctionHeader command

            usesRemaining = remaining[command]
            if usesRemaining <= 0
                button.attr 'disabled', true
                if usesRemaining < 0

        @editor.clearSelection()
        @reIndentCode()
        @gotoLine @codePrefixLength + 1
        for name, command of @commands
            command['usesRemaining'] = command['maxUses']
        return

    reIndentCode: =>
