fix decoding problem