replace nonexistent variable 'attr_name_s' with 'attr.name' in error messages