Fix nil error in Ping