Fixed attempt to modify read-only className attribute.