fixing retention xmls