Fix totem frame decoder