fix bug to define non-property class