fixed getattr for cTrait