Fix a bug updating unique_installs when renaming a package