fix ping method