Possible fix to the bad-CA-state bug.