           @Log.groupCollapsed "redmine.loadProjects()"
           @Log.table data.projects
           @Log.groupEnd "redmine.loadProjects()"
-        deferred.resolve(data, status))
+        r.success(data, status))
       .error((data, status, headers, config) =>
         if data is "" then data = {error: "Cann't connection.", stats: status}
         data.account = @auth
-        deferred.reject(data, status))
-
-    return deferred.promise
+        r.error(data, status))
+
+    return r.promise
 
 
   ###

      .success((args...) =>
        args[0].url = @auth.url
        r.success(args[0]))
      .error((args...) -> r.error(args[0]))
    return r.promise

  ###
  loadProjects: (params) =>
    @Log.debug "loadProjects start"
    r = @_bindDefer(null, null, "loadProjects")

    params = params or {}
    params.limit = params.limit or Redmine.LIMIT_MAX
