fix auto-generator