Fixed a bug which caused errors when a team name is omitted