fixed a subtle bug in the FixedSizeDecoder