Fixed decrypting bug involving the mask.