fix decoding file