Biogenerator little fix

Tiny little fix
Merge pull request #2682 from Razharas/BiogenFix

Biogenerator little fix