Fix the problem of recursion