fix a bug about ping