 
         return defered.promise
 
-    _queryManyPaginated: (name, params, options, cls, urlParams) ->
+    _queryManyPaginated: (name, params, options, urlparams, cls) ->
         defaultHttpParams = {
             method: "GET",
             headers: @_headers(false),
-            url: @gmUrls.api(name, urlParams)
+            url: @gmUrls.api(name, urlparams)
         }
 
         httpParams =  _.extend({}, defaultHttpParams, options)


        return defered.promise

    _queryOne: (name, id, params, options, cls) ->
        defaultHttpParams = {method: "GET", headers:  @_headers()}
        httpParams =  _.extend({}, defaultHttpParams, options)



        # Second step: make user story models
        _makeUserStoryModels = (milestone) =>
            milestone.user_stories = _.map milestone.user_stories, (obj) => @model.make_model("userstories", obj)

            return milestone

