Fix bug in xml.snippets