Fixed uninstalling packages.