Fix team packet parsing