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

          isMenuAppended = false

          element.unbind "blur", blurHandler

        return

      ###
      @function

        isMenuAppended = true

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

      ###
      @function
      @name reset
      @description
      Resetting autocomplete
      @returns {Promise} Leave animation promise
      ###
      reset = ->
        $animate.leave(menuEl).then ->
          $menuScope.index        = 0
          $menuScope.items.length = 0

