fix some little crashmakers if unencrypted