fixed error with team creation