resolve the problem of failing to get type of model properties