revert some changes to uninstall