fixed bugs in generators for the G object