fix bug in class add model class property for active record