Fix not removing packages from the list in unique mode.