Fixed ordering of operations during decryption. (#13)