       className += _s.capitalize part
 
     @[className] ?= require './views/' + name
-    @[className.charAt(0).toLowerCase() + className.slice(1)] ?= new @[className]()
+    key = className.charAt(0).toLowerCase() + className.slice(1)
+    @[key] ?= new @[className]()
+    @[key]
 
   # "Decorator" which runs callback only when user is logged in
   loginRequired: (callback) ->

        pane = atom.workspaceView.getActivePaneView().splitDown()
      else
        paneViews = atom.workspaceView.getPaneViews()
        pane = paneViews[paneViews.length]

      pane.activate()
      atom.workspace.open(uri, searchAllPanes: true)


      return unless protocol is 'spark-ide:'

      @initView pathname.substr(1) + '-view'
      
  deactivate: ->
    @statusView?.destroy()

