Fix ping timeout bug.