Fix beam recursion and some runtimes.
Merge pull request #2191 from N3X15/beams

[HOTFIX] Fix beam recursion and some runtimes.