Fixing recursion branches.