fix auto generator