Correcting cipher variables based on `encode`