Fix the encoding parameters problem