[Yaml] Fixed #6770