fix some errors in generators