fix an error when the SSL record is bonkers
merged develop