       clearTimeout @_showForDurationTimerId
       @tween.stop()
       if immediate
-        if updateIndicator then Mode.setIndicator() else @hudUI.hide()
+        if updateIndicator
+           Mode.setIndicator()
+        else
+           @hudUI.hide()
       else
         @tween.fade 0, 150, => @hide true, updateIndicator
+      return
 
   # These parameters describe the reason find mode is exiting, and come from the HUD UI component.
   hideFindMode: ({exitEventIsEnter, exitEventIsEscape}) ->

    matchCount = if FindMode.query.parsedQuery.length > 0 then FindMode.query.matchCount else 0
    showMatchText = FindMode.query.rawQuery.length > 0
    @hudUI.postMessage {name: "updateMatchesCount", matchCount, showMatchText}

  # Hide the HUD.
  # If :immediate is falsy, then the HUD is faded out smoothly (otherwise it is hidden immediately).

  # it doesn't sit on top of horizontal scrollbars like Chrome's HUD does.

  init: (focusable = true) ->
    @hudUI ?= new UIComponent "pages/hud.html", "vimiumHUDFrame", ({data}) =>
      if (this[data.name])
        this[data.name](data)
      # this[data.name]? data
    @tween ?= new Tween "iframe.vimiumHUDFrame.vimiumUIComponentVisible", @hudUI.shadowDOM
    if focusable
      @hudUI.toggleIframeElementClasses "vimiumNonClickable", "vimiumClickable"
