         win = @document.defaultView
         vcoords = [win.pageYOffset, win.pageYOffset + win.innerHeight,
             win.pageXOffset, win.pageXOffset + win.innerWidth]
-        elems = (elem for elem in $(expr, @document).filter(':visible') when isVisible($(elem), vcoords))
+        elems = (elem for elem in $(xpath(expr, @document)).filter(':visible') when isVisible($(elem), vcoords))
 
         # How many letters do we need ?
         curHint = [0]

config =
    defaultExpr: 'a:not(:empty)[href],input[type="button"],input[type="submit"]'
    formExpr: 'textarea,select,input'
    keys: 'abcdefghijklmnopqrstuvwxyz'
    hintClass: 'ushints_hint'
    selectedHintClass: 'ushints_hint ushints_sel_hint'


        bindCommand "f:", config.defaultExpr, callbacks.simulateClick
        bindCommand "F:", config.defaultExpr, callbacks.simulateCtrlClick
        bindCommand "a:", "#{config.defaultExpr}|#{config.formExpr}", callbacks.activate
