fix bug with multiple teams