Fix renaming of attributes.