xml parsing fix, search clearing