Fix team index