Fix ping heartbeating.