fix ping recursion.