Fixing capitalization problem in model generator.