     @subscriptions = null
 
   serialize: ->
-    modelState: @findOptions?.serialize() ? @modelState
+    findOptions: @findOptions.serialize()
     findHistory: @findHistory.serialize()
     replaceHistory: @replaceHistory.serialize()
     pathsHistory: @replaceHistory.serialize()

    @replaceHistory = new History(replaceHistory)
    @pathsHistory = new History(pathsHistory)

    @findOptions = new FindOptions(@modelState)
    @findModel = new BufferSearch(@findOptions)
    @resultsModel = new ResultsModel(@findOptions)


      minimum: 0
      description: 'When you type in the buffer find box, you must type this many characters to automatically search'

  activate: ({findOptions, findHistory, replaceHistory, pathsHistory}={}) ->
    atom.workspace.addOpener (filePath) ->
      new ResultsPaneView() if filePath is ResultsPaneView.URI

