fixed unencrypted bug that tried to access crypto struct