fix bad class struct