fix attributes for entity