 
   # This method is called in render, and classifies the messages according to scope
   _extractMessages: (Gen, counts) ->
-    isProject = @scope is 'project'
+    isProject = @_scope is 'project'
     activeFile = @linter.activeEditor.getPath()
     ToReturn = []
     @linter.h.genValues(Gen).forEach (Entry) ->

    @_panelWorkspace = atom.workspace.addBottomPanel item: @_panel, visible: false

    # Set default tab to File
    @scope = 'file' # the value of @scope is changed from views/bottom-tab-{file, project}
    @_bottomTabFile.active = true
    @_panel.id = 'linter-panel'


      return @setPanelVisibility(false)
    @setPanelVisibility(true)
    @_messages.forEach (message)=>
      if @_scope is 'file' then return unless message.currentFile
      if message.currentFile and message.range #Add the decorations to the current TextEditor
        marker = @linter.activeEditor.markBufferRange message.range, {invalidate: 'never'}
        @_decorations.push @linter.activeEditor.decorateMarker(
