Fix runtime error when adding generators, improve generators workflow