fix ping length bug and change for demo