Fixed deleteTeam function