Fixing defect when there are no YAML replacement nodes