Fix error with teams with spaces