fixed crash on team with no team