ZHA entities Aliases changed after Core to Container migration

Hi all,
I just migrated my HA installation from Core to Container.
Everything kind of worked at the first try but all my entities pertaining ZHA were renamed with the default name.

I don’t know why this happened because I copied the entire configuration folder (including the zigbee.db)… .
Is there any way to get back the original names without having to rename them one by one? To be honest the network is already working as expected…only the entity aliases are wrong.

I solved this by copying again the core.device_registry and core.entity_registry files. Not sure why they were (wrongly) modified in the first place.

Now it seems that the names are correct again.