fix bug of method 2. modify Ping message