         if stats.isFile()
           if state.saveTime < stats.mtime.getTime()
             reload = true
+            @stateTime = new Date().getTime()
 
     # Need to distinguish between the Autocomplete provider and the
     # containing class (which holds the serialize fn)

    reload = false
    if state
      bibtexFiles = atom.config.get "autocomplete-bibtex.bibtex"
      if not Array.isArray(bibtexFiles)
        bibtexFiles = [bibtexFiles]
      # reload everything if any files changed

  serialize: ->
    state = {
      provider: @bibtexProvider.serialize()
      saveTime: @stateTime ? new Date().getTime()
    }
    return state

