CoreData saving under wrong app name.

I have many apps published on the app store however I have one that is saving it's core data under a different one's app name. I don't know how else to describe the issue.

So I have an app called AppB let's say. This app uses CoreData/Cloudkit and works perfect. I also have an app called AppA and it also works very well. However, AppA is saving it's CoreData with the title "AppB".

So under iCloud/Manage iCloud Storage on a device it says "AppB" with AppB's icon even, but is actually AppA's storage.

Everything is working but it obviously confuses customers and I would love to know how this can even happen.