fix attributes issue