Fix to the ping_result function.