encoding bug fixed, 2nd