xml: smart results
minor bugfix