   wrapMethod sdk, 'deleteTeamFee', (deleteTeamFee) ->
     (teamFee, callback) ->
       deleteTeamFee.call(this, teamFee).then((result) ->
-        sdk.loadMemberBalances(teamId: teamFee.teamId).then ->
+        teamId = teamFee.teamId
+        sdk.loadMemberBalances(teamId: teamId).then ->
           result
       ).callback callback
 

  wrapMethod sdk, 'saveTeamFee', (saveTeamFee) ->
    (teamFee, callback) ->
      saveTeamFee.call(this, teamFee).then((result) ->
        sdk.loadMemberBalances(teamId: teamFee.teamId).then ->
          result
      ).callback callback


  wrapMethod sdk, 'saveMemberPayment', (saveMemberPayment) ->
    (memberPayment, callback) ->
      saveMemberPayment.call(this, memberPayment).then((result) ->
        memberId = result.memberId
        teamFeeId = result.teamFeeId
        promises.when(
          sdk.loadMemberBalances(memberId: memberId)
          sdk.loadTeamFees(id: teamFeeId)
        ).then -> result
      ).callback callback

