fix cat codec problem