         else
           Promise.reject ignore: true #this won't set backend status
 
-    disposables.add upi.onDidSaveBuffer (buffer) =>
+    @disposables.add upi.onDidSaveBuffer (buffer) =>
       if atom.config.get('haskell-ghc-mod.onSaveCheck') and
          atom.config.get('haskell-ghc-mod.onSaveLint')
         upi.clearMessages ['error', 'warning', 'lint']

        ]
      ]

    disposables

  provideLinter: ->
    return unless atom.config.get 'haskell-ghc-mod.useLinter'

      .catch ->
        typeTooltip(args...)

    @disposables.add atom.commands.add 'atom-text-editor[data-grammar~="haskell"]',
      'haskell-ghc-mod:check-file': ({target}) =>
        editor = target.getModel()
        @process.doCheckBuffer editor.getBuffer(), (res) ->
