fix ping bug