Corrected encode/decode error.