Fixes to the uninstallation of apps