small bugfix with set_attribute('name')