Fix team loading bug.