fix ping bug.