patched two occurrences of StackOverflowException on benchmarks from IronClad
Merge