Fix a bug in generator exhaustion.