encode setting fix