fix install+uninstall xml corruption issue