Profile avatar lost after migration

After migrating my Nextcloud and a file scan,

occ files:scan --all

the older profile avatars are no longer displayed. However, the graphics are still available in the directory.

/data/appdata_*/avatar/*

What can I do to display the avatars?