fix CaseModel.ts to be able to be compiled