Fix the crash with teams not being cleared

You forgot to actually add the team to the list of teams...