Fix recursion issue.