Fix ping method.