Fix server ping method.