Fix bug where old values leak to newly decoded values