fixed problem in xml trees