fix renaming of attributes