Hotfix for generateModel because works wrong