fix addAttributesToElement: !element.attributes