Apple Mail saves my flagged email under the wrong flag-folder??

I have an issue;

To keep my emails sorted, I flag them with different colors.
But, every now and then, Apple Mail mixes things up...

- For example; a grey flagged email gets saved under the green flag-folder.
How can I solve this??
I do not know the answer to that question because I don't flag items with different colors. Hopefully, someone who does will reply soon.

Original thread: https://forums.imore.com/threads/apple-mail-saves-my-flagged-email-under-the-wrong-flag-folder.398115/