shorten: fix lossy decoding