Overriding properties of multiple classes on element doesn't work