fix bug where translate_name does not save attributes correctly