fix decoding bug (2)