Fixed swapping prevention for Huffman.