Duplicate UID and GID after upgrade from core

After upgrading from core to scale I have a couple of users and groups that are duplicates in the system. My problem is that I can’t delete the duplicates, because the seem to be tangled with the built inn users/groups.
Right now there seem to be two pairs (user and group) of these duplicates. www-data & www-data_1 + backup & espenu.

For example: user “espenu” has UID 34, and the primary group was “espenu” with GID 34, which is the same GID as the built-inn “backup” group.
I made another group (espenu2), and assigned it as a primary group for the user. But, when trying to delete the group I can’t because the “backup” user has that as primary group. I also can’t change the primary group for “backup” to the correct one because I’m not allowed to modify the primary group of built-inn users.

It seems to be possible to correct all of this using command line, but those changes are not visible in the web interface, so by doing that I seem to bring the TrueNAS user database out of sync with the actual system.
After fixing a duplicate set using cli I’ve tried running “midclt call user.sync_builtin” to try and rebuild the database and get the UI in sync with the actual system, but no luck.

Technically these duplicate users and groups don’t seem to cause any harm, but I don’t like having duplicates like that on my system. It’s just very messy.

Are there any ways to correct this?