Fix errors with reflect Attribute