             name: "showHUDforDuration",
             text: "Global mark not set: '#{req.markName}'."
             duration: 1000
-        else if markInfo.vimiumSecret != items.vimiumSecret
+        else if markInfo.vimiumSecret != vimiumSecret
           # This is a different Vimium instantiation, so markInfo.tabId is definitely out of date.
           @focusOrLaunch markInfo
         else
           # Check whether markInfo.tabId still exists.  According to here (https://developer.chrome.com/extensions/tabs),
-          # tab Ids are unqiue within a Chrome session.  So, if we find a match, we can use.
+          # tab Ids are unqiue within a Chrome session.  So, if we find a match, we can use it.
           chrome.tabs.get markInfo.tabId, (tab) =>
             if not chrome.runtime.lastError and tab?.url and markInfo.url == @getBaseUrl tab.url
               # The original tab still exists.

            @gotoPositionInTab extend markInfo, tabId: tab.id
            return
      # There is no existing matching tab, we'll have to create one.
      chrome.tabs.create { url: @getBaseUrl(markInfo.url) }, (tab) =>
        # Note. tabLoadedHandlers is defined in "main.coffee".  The handler below will be called when the tab
        # is loaded, its DOM is ready and it registers with the background page.
        tabLoadedHandlers[tab.id] = => @gotoPositionInTab extend markInfo, tabId: tab.id

              # The original tab no longer exists.
              @focusOrLaunch markInfo

  # Focus an existing tab and scroll to the given position within it.
  gotoPositionInTab: ({ tabId, scrollX, scrollY, markName }) ->
    chrome.tabs.update tabId, { selected: true }, ->
      chrome.tabs.sendMessage tabId,
