Fix UnsupportedOpperationException on addStyleName()