           input-ticker
           (funcall ,candidate-filter input)))
 
-       (defvar ,backend-name
-         '(("name" . ,name)
-           ("search" . ,search-function)
-           ("do" . ,candiate-do)
-           )))))
+       (defvar ,backend-name nil)
+
+       (setq ,backend-name
+             '(("name" . ,name)
+               ("search" . ,search-function)
+               ("do" . ,candiate-do)
+               )
+             ))))
 
 (defmacro* snails-create-async-backend (&rest args &key name build-command candidate-filter candiate-do)
   "Macro to create sync backend code.

;; Maintainer: Andy Stewart <lazycat.manatee@gmail.com>
;; Copyright (C) 2019, Andy Stewart, all rights reserved.
;; Created: 2019-05-16 21:26:09
;; Version: 0.4
;; Last-Updated: 2019-07-22 06:38:36
;;           By: Andy Stewart
;; URL: http://www.emacswiki.org/emacs/download/snails.el
;; Keywords:

          update-callback
          ))

       (defvar ,backend-name nil)

       (setq ,backend-name
             '(("name" . ,name)
               ("search" . ,search-function)
               ("do" . ,candiate-do)
               )
             ))))

(provide 'snails-core)

