   return
 
 Zotero.BetterBibTeX.removeTranslators = ->
-  for own name, header of @translators
+  for own id, header of @translators
     @removeTranslator(header)
   @translators = Object.create(null)
   Zotero.Translators.init()

Components.utils.import('resource://gre/modules/Services.jsm')
Components.utils.import('resource://gre/modules/AddonManager.jsm')

require('Formatter.js')
require('lokijs.js')

      @unregister()
      Zotero.BetterBibTeX.cache.flush()
      Zotero.BetterBibTeX.keymanager.flush()

      try
        serialized = Zotero.getZoteroDirectory()
        serialized.append('bbt-serialized-items.json')
        serialized.remove(false) if serialized.exists()
        Zotero.File.putContents(serialized, JSON.stringify(Zotero.Translate.ItemGetter::serialized))
      catch

    return
  register: ->
    observerService = Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService)
