fix update_attributes with `css_class`