Fixed an issue where teams were not saving correctly.