Fix constant generator.