fix properites encoding bug