corrected bug in the generator example
Merge remote-tracking branch 'origin/master'