Get rid of weak failing assertion in generators.

Added todo for later improvement.