fix onGenerate function to be triggered
Merge pull request #115 from Tom-Van-Asch/master

fix onGenerate function to be triggered