cache encoding bug fixed