fixing auto generator