Fixed encryption error