fix error build encode