fix bug when adding member to a team and rename method