Fixed a problem with the creation of the team