fix ping bugs