Fixed a encoding bug