             else
               {label: item, value: item}
 
-          appendMenu positionMenu
+          appendMenu().then positionMenu
 
         else
          reset()

        isMenuAppended = true

        if inside
          $animate.enter menuEl, undefined, element, callback
        else
          $animate.enter menuEl, angular.element(document.body), undefined, callback

      ###
      @function
      @name reset
      @description
      Resetting autocomplete
      ###
      reset = ->
        $animate.leave menuEl, ->
          $menuScope.index        = 0
          $menuScope.items.length = 0


          isMenuAppended = false

          element.unbind "blur", blurHandler

      ###
      @function
