Correcting defect with host being a class instead of a defined type.