Fix the crash with teams not being cleared

You forgot to actually add the team to the list of teams...
Merge pull request #258 from roblabla/patch-2

Fix the crash with teams not being cleared