fixed normal encoding bug