Use filter to move the emails from the IMAP folders back to the correct folder. That's the only workaround that works so far.
Using the Gmail app on Android phone would avoid having the IMAP folders created.
But if you are like me, like to star lots of emails, it will not work. In my case...