fix bug for method Ping