Fixed class generator.