Fixed bug in ping.