Fix auto generation error