     # Check the distance of the nav selector from the bottom of the window and fire
     # load event if close enough
     check: ->
-      nav = @$container.find(@options.navSelector)
+      nav = $(@options.nextSelector)
       if nav.size() == 0
         @_log "No more pages to load"
       else

      @$container = $(container)
      @$table = $(container).find('table')
      @$context = $(@options.context)
      @instanceId = @constructor._nextId()
      @init()

    # Setup and bind to related events

    # Default settings
    defaults:
      debug: false  # set to true to log messages to the console
      navSelector: null
      nextSelector: 'a[rel=next]'
      buffer: 1000  # 1000px buffer by default
      success: null # optional callback when next-page request finishes
      error:   null # optional callback when next-page request fails
      context: window # context to define the scrolling container
      loading: null
      ajax:
        path: undefined
        dataType: 'html'
        method: 'html'
      state:
        paused:  false
        loading: false
