Fix Yaml deprecation warning