change the encoding bug