fix issue with Yaml Parser throwing an error while parsing