fixes issue with class type error compile