Fix to properly undo global style changes