Fix update of packages list when removing a package