Fix bug with uninstalling