Break infinite recursion that leads to segfault.