Fixes msgpack encoding bug.