bugfix for generator lambda function handling