bug: sometime "class"-attribute is set multiple times.
fixed: all classes are written in the same attribute.