Fix "invalid read" in ike format
Fix misc. "invalid read" problems