various fixes on the generation of observations XMLs