Fixed issue due to team_index unassigned