Merge branch 'fixStackOverflow' into 'master'

fix stack overflow with bent generation mode

See merge request !29
1 job for master in 46 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #67047
test

00:00:46