fixing generator