fix remove/uninstall completion's behavior