Fix bug where teams could not be created.