updated model generator to fix typo