fixed ping to choose the best node to connect