fixed `yield` generator functions.