fix in generator