Fixed unbounded recursion.