xml_children returning wrong number of children