diff --git a/app/controllers/contributions_controller.rb b/app/controllers/contributions_controller.rb
index 6bb17581b..a2896f9fb 100644
--- a/app/controllers/contributions_controller.rb
+++ b/app/controllers/contributions_controller.rb
@@ -18,9 +18,10 @@ class ContributionsController < ApplicationController
       @del_count = Hash.new
       @change_count = Hash.new
       branches.each do |branch|
+        branch_name = branch.name
         Rails.logger.info("!!!!!!! This is the branch:")
-        Rails.logger.info(branch)
-        static_total_per_user = @g.rep_stats(project_id, :rev => branch)
+        Rails.logger.info(branch_name)
+        static_total_per_user = @g.rep_stats(project_id, :rev => branch_name)
         static_total_per_user.each do |static|
           uname = static.uname.to_s
           change_num = static.changes.to_i