fixing ping timeout bug