Fix second recursion bug.