fix an error when the SSL record is bonkers