         return @_queryOne("issues", issueId, params)
 
     getIssueHistorical: (issueId, filters={}) ->
-        urlParams = [issueId]
+        urlparams = [issueId]
         parameters = _.extend({}, filters)
-        return @_queryManyPaginated("issues-historical", parameters, null , null, urlParams)
+        return @_queryManyPaginated("issues-historical", parameters, null , urlparams)
 
     getTask: (projectId, taskId) ->
         return @_queryOne("tasks", taskId, {project:projectId})
 
     getTaskHistorical: (taskId, filters={}) ->
-        urlParams = [taskId]
+        urlparams = [taskId]
         parameters = _.extend({}, filters)
-        return @_queryManyPaginated("tasks-historical", parameters, null , null, urlParams)
+        return @_queryManyPaginated("tasks-historical", parameters, null , urlparams)
 
     search: (projectId, term, getAll) ->
         defered = @q.defer()


        return defered.promise

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

        if id
            httpParams.url = "#{@gmUrls.api(name)}/#{id}"
        else
            httpParams.url = "#{@gmUrls.api(name)}"

        if not _.isEmpty(params)
            httpParams.params = params

            httpParams.params = params

        if id
            httpParams.url = "#{@gmUrls.api(name, urlparams)}/#{id}"
        else
            httpParams.url = "#{@gmUrls.api(name, urlparams)}"

        defered = @q.defer()
        promise = @http(httpParams)
