fix teams indexes