fixed some ping related bugs