Fix legacy decoding.