Is there a way around this UI bug?

Try exporting your UI settings to a text file on your desktop. Blizz has a hotfix for issues like this coming.

Blue text here: UI completely reset? - #12 by Kaivax