modify encode setting
fix setting