Fix for decryption

The decryption counterpart to the encryption fix.