                 @kernelManager.destroyRunningKernel kernel
             @clearResultBubbles()
             @kernelManager.startKernel kernelSpec, grammar, =>
-                @setStatusBarElement()
+                @setStatusBar()
                 kernel = @kernelManager.getRunningKernelFor language
                 @setWatchSidebar kernel
 

            @kernelManager.destroyRunningKernel kernel
            @clearResultBubbles()
            @kernelManager.startKernel kernelSpec, grammar, =>
                @setStatusBarElement()
                kernel = @kernelManager.getRunningKernelFor language
                @setWatchSidebar kernel


        while @statusBarElement.hasChildNodes()
            @statusBarElement.removeChild @statusBarElement.lastChild

    setStatusBar: ->
        unless @statusBarElement?
            console.error 'setStatusBar: there is no status bar'
            return

        @removeStatusBarElement()
