correction made to teamTotal function.

Correction made to teamTotal Function