Check to make sure the "on_change" callback isn't causing this. Might have to "clear" the previous teams differently.