fix a generator bug