       page.story.push heading, hits...
       page.story[0].text = 'We could not find this page in the expected context.'
 
-    wiki.buildPage( page, undefined, $pageElement ).addClass('ghost')
+    wiki.buildPage( page, undefined, $page ).addClass('ghost')
 
   registerNeighbors = (data, site) ->
     if _.include ['local', 'origin', 'view', null, undefined], site

      neighborhood.registerNeighbor action.site if action.site?

  whenGotten = (data,siteFound) ->
    wiki.buildPage( data, siteFound, $pageElement )
    registerNeighbors( data, siteFound )

  pageHandler.get

      favicon_src: "/favicon.png"
      title: page.title

  $page.append( pageHeader )
  
  unless isRemotePage
    $('img.favicon',$page).error (e)->
      plugin.get 'favicon', (favicon) ->
        favicon.create()

  if (rev = $page.attr('id').split('_rev')[1])?
    date = page.journal[page.journal.length-1].date
    $page.addClass('ghost').data('rev',rev).append $ """
      <h2 class="revision">
        <span>
          #{if date? then util.formatDate(date) else "Revision #{rev}"}
        </span>
      </h2>
    """
renderPageIntoPageElement = (pageData,$page, siteFound) ->
  page = $.extend(util.emptyPage(), pageData)
  $page.data("data", page)
  slug = $page.attr('id')
  site = $page.data('site')

  context = ['view']
  context.push site if site?
